<template>
  <el-config-provider :locale="locale">
    <router-view></router-view>
  </el-config-provider>
</template>

<script>
import { defineComponent, computed } from "vue";
import { useI18n } from "vue-i18n";

export default defineComponent({
  name: "App",
  setup() {
    const i18n = useI18n();
    const locale = computed(() => ({
      name: i18n.locale.value,
      el: i18n.messages.value[i18n.locale.value].el
    }));
    return {
      locale
    };
  }
});
</script>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  width: 100%;
  height: 100vh;
}

.el-loading-spinner {
  .el-loading-text {
    //color: #ffffff !important;
    font-size: 18px;
  }

  .circular {
    color: #ffffff !important;
  }
}

.demo-form-inline {
  width: 100%;
  background-color: #f7f8fa;
  padding: 12px 22px;

  .el-input {
    --el-input-width: 220px;
  }
}

.el-form-item--default .el-form-item__label {
  height: 40px;
  line-height: 40px;
}

.layout-container-form .el-form-item {
  margin-right: 28px;
}
</style>
